<template>
	<view class="card" :style="cardStyle">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: "Assdmin",
		props: {
			padding: {
				type: String,
				default: '24rpx'
			},
			radius: {
				type: String,
				default: '24rpx',
			},
			margin: {
				type: String,
				default: '24rpx'
			}
		},
		data() {
			return {

			};
		},
		computed: {
			cardStyle() {
				return `padding:${this.padding};margin:${this.margin};border-radius:${this.radius};`
			}
		},
	}
</script>

<style lang="less" scoped>
	.card {
		background-color: #fff;
		box-sizing: border-box;
	}
</style>